package com.dmn.gcode.springchains.adapters;

import com.dmn.gcode.springchains.core.In;

/**
 * date 2/3/11
 *
 * @author dvponomarev
 * @version 1.0
 */
public class StringEmptyBooleanAdapter implements In<Boolean> {
    private String string;

    public Boolean get() {
        return string != null && string.trim().length() > 0;
    }

    public void setString(String string) {
        this.string = string;
    }
}
